package com.originskyseed.platform.cms.mapper;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.cms.vo.CmsContentListVO;
import com.originskyseed.platform.cms.vo.InformationListVO;

/**
 * 内容查询Mapper类
 *
 * @author TangWangHui
 *
 */
public interface CmsContentListMapper {

	/**
	 * 按条件分页查询内容
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<InformationListVO> selectCmsContentListByPage(Map<String, Object> params) throws Exception;

	/**
	 * 按条件查询内容
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<InformationListVO> selectCmsContentList(Map<String, Object> params) throws Exception;

	/**
	 * 查询消息公告、热门推荐
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<Map<String, Object>> selectNoticeOrRecommend(Map<String, Object> params) throws Exception;

	/**
	 * 根据id查询内容
	 *
	 * @param contentId
	 * @return
	 * @throws Exception
	 */
	public CmsContentListVO selectCmsContentById(String contentId) throws Exception;

	/**
	 * 查询所有内容
	 *
	 * @return
	 * @throws Exception
	 */
	public List<CmsContentListVO> selectCmsContentAll() throws Exception;

}
